﻿using Sgr.Security.Permissions;

namespace Sgr.AuditLogs
{
    public class Permissions : IPermissionProvider
    {
        public const string QueryAuditLogPermission = "Sgr.QueryAuditLog";

        public string ProviderName => "93-日志管理";

        public Task<IEnumerable<FunctionPermission>> GetFunctionPermissionsAsync()
        {
            return Task.FromResult(new FunctionPermission[]
            {
                new(QueryAuditLogPermission, "审计日志", "浏览审计日志", GrantRoleType.SuperAdmin | GrantRoleType.SystemAdmin)
            }.AsEnumerable());
        }
    }
}